package com.example.c94s3plyhyfc.mapper;

import com.example.c94s3plyhyfc.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper extends BaseMapper<User>{

    @Select("select * from hyfc_user where name=#{name} and pwd=#{pwd}")
    User selectForLogin(@Param("name") String name, @Param("pwd") String pwd);

    @Select("select count(*) from hyfc_user where name = #{name}")
    int countByName(String name);
}
